package com.zy.openchat.core.model.discover;

import android.os.Parcel;
import android.os.Parcelable;

public class DiscoverMenuInfo implements Parcelable {
    //菜单标题
    public String title;
    //菜单图标
    public String icon;
    //菜单跳转的URL
    public String url;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.title);
        dest.writeString(this.icon);
        dest.writeString(this.url);
    }

    public DiscoverMenuInfo() {
    }

    protected DiscoverMenuInfo(Parcel in) {
        this.title = in.readString();
        this.icon = in.readString();
        this.url = in.readString();
    }

    public static final Creator<DiscoverMenuInfo> CREATOR = new Creator<DiscoverMenuInfo>() {
        @Override
        public DiscoverMenuInfo createFromParcel(Parcel source) {
            return new DiscoverMenuInfo(source);
        }

        @Override
        public DiscoverMenuInfo[] newArray(int size) {
            return new DiscoverMenuInfo[size];
        }
    };
}
